import {
	request
} from '@/utils/request'
/**
 *  直播列表
 * @returns {Promise}  直播列表
 */

export const livebroadcastlist = (data) => {
	return request({
		url: '/livebroadcast/livebroadcastlist',
		method: 'POST',
		data: data,
	})
}

/**
 *  直播分类
 * @returns {Promise}  直播分类
 */
export const livebroadcastcate = (lang_code = 'zh') => {
	return request({
		url: '/livebroadcast/livebroadcastcate',
		method: 'GET',
		params: { // 这里也应该使用params
			lang_code
		}
	})
}
// 列表点击数量加1
export const setint = (data) => {
	return request({
		url: '/livebroadcast/setint',
		method: 'POST',
		data: data, // GET 请求使用 params，会自动拼接到 URL
	})
}